package com.zy.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.news.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where user_name=#{userName} and password=#{password}")
    User login(User u);

}
